using Pegasus.Diagnostics;
using System;
using System.Collections;
using System.Threading;

namespace Pegasus.Threading
{
	/// <summary>
	/// Summary description for AppScheduler.
	/// </summary>
    [Obsolete("This has been replaced by the AppScheduler2 which is extendable",false)]
	public class AppScheduler
	{
		/// <summary>
		/// Schedules the task.
		/// </summary>
		/// <param name="task">The task.</param>
		public static void ScheduleTask( IScheduleTask task )
		{
            AppScheduler2.AppScheduler.ScheduleTask( task );
		}

		/// <summary>
		/// Unschedules the task.
		/// </summary>
		/// <param name="task">The task.</param>
		public static void UnscheduleTask( IScheduleTask task )
		{
            AppScheduler2.AppScheduler.UnscheduleTask( task );
		}

		/// <summary>
		/// Determines whether [is scheduled task] [the specified task].
		/// </summary>
		/// <param name="task">The task.</param>
		/// <returns>
		/// 	<c>true</c> if [is scheduled task] [the specified task]; otherwise, <c>false</c>.
		/// </returns>
		public static bool IsScheduledTask( IScheduleTask task )
		{
            return AppScheduler2.AppScheduler.IsScheduledTask( task );
		}
	}
}
